package com.naiterui.ehp.bs.doctor.fegin;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.naiterui.ehp.bp.bo.cms.AgreementBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.doctor.vo.followup.DrFollowUpFormTypeVO;

/**
 * cms
 * 
 * @author yangfuya
 * @since 2021/10/13
 */
@FeignClient(name = "cmsapi", url = "${ehp.domain.cmsapi}", configuration = FeignConfiguration.class)
public interface CmsFeginClient {

    /**
     * 根据类型获取协议内容
     * 
     * @param type
     * @return
     * @throws BusinessException
     */
    @GetMapping("/inner/base/agreement/{type}")
    AgreementBO getByType(@PathVariable("type") String type) throws BusinessException;

    /**
     * 根据类型获取字典
     *
     * @param type
     * @return
     * @throws BusinessException
     */
    @GetMapping("/inner/sys/dict/vue/list/{type}")
    List<DrFollowUpFormTypeVO> vueList(@PathVariable("type") String type) throws BusinessException;
}
